﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//随机出生点
public class Points : Singleton<Points>
{
    public Transform[] points;

    public Vector3 GetPoint(int index)
    {
        index = Mathf.Clamp(index, 0, points.Length - 1);
        return points[index].position;
    }
}
